/**求二进制情况下奇数和偶数位的交换
 * @author tongchen
 * @create 2023-01-08 22:32
 */
public class Change {
    public static void main(String[] args) {
        int num=9;
        int i=num&(0xaaaaaaaa);
        int j=num&(0x55555555);
        System.out.println((i>>1)^(j<<1));
    }
}
